﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopOrderAmount : BaseObject
    {
        //begin
        public TopOrderAmount(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Payment;
        [Size(SizeAttribute.Unlimited)]
        public string Payment
        {
            get
            {
                return _Payment;
            }
            set
            {
                SetPropertyValue("Payment", ref _Payment, value);
            }
        }
        private string _TopOid;
        [Size(SizeAttribute.Unlimited)]
        public string TopOid
        {
            get
            {
                return _TopOid;
            }
            set
            {
                SetPropertyValue("TopOid", ref _TopOid, value);
            }
        }
        private string _Title;
        [Size(SizeAttribute.Unlimited)]
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _SkuPropertiesName;
        [Size(SizeAttribute.Unlimited)]
        public string SkuPropertiesName
        {
            get
            {
                return _SkuPropertiesName;
            }
            set
            {
                SetPropertyValue("SkuPropertiesName", ref _SkuPropertiesName, value);
            }
        }
        private long _Num;
        public long Num
        {
            get
            {
                return _Num;
            }
            set
            {
                SetPropertyValue("Num", ref _Num, value);
            }
        }
        private string _Price;
        [Size(SizeAttribute.Unlimited)]
        public string Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private string _DiscountFee;
        [Size(SizeAttribute.Unlimited)]
        public string DiscountFee
        {
            get
            {
                return _DiscountFee;
            }
            set
            {
                SetPropertyValue("DiscountFee", ref _DiscountFee, value);
            }
        }
        private string _AdjustFee;
        [Size(SizeAttribute.Unlimited)]
        public string AdjustFee
        {
            get
            {
                return _AdjustFee;
            }
            set
            {
                SetPropertyValue("AdjustFee", ref _AdjustFee, value);
            }
        }
        private string _PromotionName;
        [Size(SizeAttribute.Unlimited)]
        public string PromotionName
        {
            get
            {
                return _PromotionName;
            }
            set
            {
                SetPropertyValue("PromotionName", ref _PromotionName, value);
            }
        }
        private string _NumIid;
        [Size(SizeAttribute.Unlimited)]
        public string NumIid
        {
            get
            {
                return _NumIid;
            }
            set
            {
                SetPropertyValue("NumIid", ref _NumIid, value);
            }
        }
        private string _SkuId;
        [Size(SizeAttribute.Unlimited)]
        public string SkuId
        {
            get
            {
                return _SkuId;
            }
            set
            {
                SetPropertyValue("SkuId", ref _SkuId, value);
            }
        }
        private TopTradeAmount _TradeAmount;
        [Association("TradeAmountOrderAmounts", typeof(TopTradeAmount))]
        public TopTradeAmount TradeAmount
        {
            get
            {
                return _TradeAmount;
            }
            set
            {
                SetPropertyValue("TradeAmount", ref _TradeAmount, value);
            }
        }
        //end

    }
}
